package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zzy
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DormitoryAdmin对象", description="")
public class DormitoryAdmin extends Model<DormitoryAdmin> {

    private static final long serialVersionUID = 1L;

            @ApiModelProperty(value = "宿舍管理员ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

            @ApiModelProperty(value = "上次修改时间")
    private LocalDateTime modifiedTime;

            @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdTime;

            @ApiModelProperty(value = "宿舍管理员密码")
    private String password;

            @ApiModelProperty(value = "宿舍管理员姓名")
    private String name;

            @ApiModelProperty(value = "性别")
    private String gender;

            @ApiModelProperty(value = "民族")
    private String nation;

            @ApiModelProperty(value = "宿舍管理员账号（工号）（d开头）")
    private String account;

            @ApiModelProperty(value = "逻辑删除")
            @TableLogic
    private Integer isDeleted;
            @ApiModelProperty(value = "管理楼栋号")
    private Long building;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
